home *** CD-ROM | disk | FTP | other *** search
- ! This rule file simulates the work of an actuary; the Amateur Reasoner
- will predict the respondent's life expectancy according to his replies !
-
- goal (expectancy)
-
- if base = 72 & factor = plus 12 then expectancy = 84 years.
- if base = 67 & factor = plus 12 then expectancy = 79 years.
- if base = 64 & factor = plus 12 then expectancy = 76 years.
- if base = 62 & factor = plus 12 then expectancy = 74 years.
- if base = 60 & factor = plus 12 then expectancy = 72 years.
-
- if base = 72 & factor = none then expectancy = 72 years.
- if base = 67 & factor = none then expectancy = 67 years.
- if base = 64 & factor = none then expectancy = 64 years.
- if base = 62 & factor = none then expectancy = 62 years.
- if base = 60 & factor = none then expectancy = 60 years.
-
- if base = 72 & factor = minus 12 then expectancy = 60 years.
- if base = 67 & factor = minus 12 then expectancy = 55 years.
- if base = 64 & factor = minus 12 then expectancy = 52 years.
- if base = 62 & factor = minus 12 then expectancy = 50 years.
- if base = 60 & factor = minus 12 then expectancy = 48 years.
-
- if age = 25 or less & gender = female then base = 72.
- if age = 25 or less & gender = male then base = 67.
- if age = 25 to 55 & gender = female then base = 67.
- if age = 25 to 55 & gender = male then base = 62.
- if age = 55 or more & gender = female then base = 64.
- if age = 55 or more & gender = male then base = 60.
- prompt (age) = What is your age?
- values (age) = 25 or less, 25 to 55, 55 or more.
- prompt (gender) = What is your gender?
- values (gender) = male, female.
-
- if outlook = bleak & risk = yes & add = poor then factor = minus 12.
- if outlook = poor & risk = yes then factor = minus 12.
- if outlook = fair & risk = yes then factor = minus 12.
- if outlook = bleak & risk = no then factor = none.
- if outlook = fair & risk = no then factor = none.
- if outlook = good & risk = yes & add = good then factor = none.
- if outlook = excellent & risk = yes & add = good then factor = none.
- if outlook = good & risk = no then factor = plus 12.
- if outlook = excellent & risk = no & add = fair then factor = plus 12.
- if outlook = excellent & risk = no & add = poor then factor = plus 12.
- if outlook = excellent & risk = no & add = good then factor = plus 12.
-
- if obese = yes & heart risk = yes
- & blood pressure = above average & smoker = yes
- then outlook = bleak.
-
- if obese = yes & heart risk = yes
- & blood pressure = above average & smoker = no
- then outlook = poor.
-
- if obese = yes & heart risk = yes
- & blood pressure = average & smoker = yes
- then outlook = bleak.
-
- if obese = yes & heart risk = yes
- & blood pressure = average & smoker = no
- then outlook = poor.
-
- if obese = yes & heart risk = no
- & blood pressure = above average & smoker = yes
- then outlook = poor.
-
- if obese = yes & heart risk = no
- & blood pressure = above average & smoker = no
- then outlook = fair.
-
- if obese = yes & heart risk = no
- & blood pressure = average & smoker = yes
- then outlook = fair.
-
- if obese = yes & heart risk = no
- & blood pressure = average & smoker = no
- then outlook = good.
-
- if obese = no & heart risk = yes
- & blood pressure = above average & smoker = yes
- then outlook = poor.
-
- if obese = no & heart risk = yes
- & blood pressure = above average & smoker = no
- then outlook = fair.
-
- if obese = no & heart risk = yes
- & blood pressure = average & smoker = yes
- then outlook = fair.
-
- if obese = no & heart risk = yes
- & blood pressure = average & smoker = no
- then outlook = good.
-
- if obese = no & heart risk = no
- & blood pressure = above average & smoker = yes
- then outlook = fair.
-
- if obese = no & heart risk = no
- & blood pressure = above average & smoker = no
- then outlook = good.
-
- if obese = no & heart risk = no
- & blood pressure = average & smoker = yes
- then outlook = fair.
-
- if obese = no & heart risk = no
- & blood pressure = average & smoker = no
- then outlook = excellent.
-
- if weight = 110 or less & build = small & gender = female then obese = no.
- if weight = 110 or less & build = large then obese = no.
- if weight = 110 to 170 & build = small & gender = female then obese = no.
- if weight = 110 to 170 & build = large & gender = female then obese = no.
- if weight = 110 to 170 & gender = male then obese = no.
- if weight = 170 or more & gender = female then obese = yes.
- if weight = 170 or more & gender = male & build = small then obese = yes.
- if weight = 170 or more & gender = male & build = large then obese = no.
- prompt (weight) = What is your weight in pounds ?
- values (weight) = 110 or less, 110 to 170, 170 or more.
- prompt (build) = What is your build ?
- values (build) = small, large.
-
- if cholesterol = low & fat = high then heart risk = no.
- if cholesterol = low then heart risk = no.
- if cholesterol = normal then heart risk = no.
- if cholesterol = high & fat = high then heart risk = no.
- if cholesterol = high & fat = normal then heart risk = yes.
- prompt (cholesterol) = What is your animal fat intake?
- values (cholesterol) = low, normal, high.
- prompt (fat) = What is your unsaturated fat intake?
- values (fat) = normal, high.
-
- if salt = high then blood pressure = above average.
- if salt = normal then blood pressure = average.
- prompt (salt) = What is your salt intake?
- values (salt) = normal, high.
-
- if risk a = high then risk = yes.
- if risk a = medium & risk b = yes then risk = yes.
- if risk a = medium & risk b = no then risk = no.
- if risk a = low & risk b = yes then risk = yes.
- if risk a = low & risk b = no then risk = no.
-
- if race = black then risk a = high.
- if race = caucasian then risk a = medium.
- if race = asian then risk a = low.
- prompt (race) = What is your racial type?
- values (race) = black, caucasian, asian.
-
- if aggressive = yes then risk b = yes.
- if aggressive = no then risk b = no.
- prompt (aggressive) = Do you have an aggressive personality?
- values (aggressive) = yes, no.
-
- if alcohol use = none then add = fair.
- if alcohol use = moderate then add = good.
- if alcohol use = excessive then add = poor.
- prompt (alcohol use) = What is your alcohol consumption?
- values (alcohol use) = none, moderate, excessive.
-
- prompt (smoker) = Do you smoke?
- values (smoker) = yes, no.